<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: lib/core/include/chi/GraphFunction.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('GraphFunction_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">GraphFunction.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="GraphFunction_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef CHI_GRAPH_FUNCTION_HPP</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define CHI_GRAPH_FUNCTION_HPP</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="core_2include_2chi_2Fwd_8hpp.html">chi/Fwd.hpp</a>&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="HashUuid_8hpp.html">chi/Support/HashUuid.hpp</a>&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;chi/Support/json.hpp&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;boost/filesystem.hpp&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;boost/utility/string_view.hpp&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;boost/uuid/random_generator.hpp&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;boost/uuid/uuid.hpp&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacechi.html">chi</a> {</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html">   23</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a> {</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html#a44459c33f26a8f4d9529619991988100">GraphFunction</a>(<a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp; mod, std::string <a class="code" href="structchi_1_1GraphFunction.html#a89069f6e08f71cfbafb245ea16c8d69f">name</a>, std::vector&lt;NamedDataType&gt; dataIns,</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;                  std::vector&lt;NamedDataType&gt; dataOuts, std::vector&lt;std::string&gt; execIns,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;                  std::vector&lt;std::string&gt; execOuts);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html#a44459c33f26a8f4d9529619991988100">GraphFunction</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html#a44459c33f26a8f4d9529619991988100">GraphFunction</a>(<a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp;&amp;)      = <span class="keyword">delete</span>;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp; operator=(<a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp;&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html#a89c896ae804c853b4c291897f5f8634c">~GraphFunction</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#aa5985d96d7564d7ee7f240fdb02b41a6">   51</a></span>&#160;    std::unordered_map&lt;boost::uuids::uuid, std::unique_ptr&lt;NodeInstance&gt;&gt;&amp; <a class="code" href="structchi_1_1GraphFunction.html#aa5985d96d7564d7ee7f240fdb02b41a6">nodes</a>() {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordflow">return</span> mNodes;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    }</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#a900c0b670ad04a76b6add803ade7ae0d">   55</a></span>&#160;    <span class="keyword">const</span> std::unordered_map&lt;boost::uuids::uuid, std::unique_ptr&lt;NodeInstance&gt;&gt;&amp; <a class="code" href="structchi_1_1GraphFunction.html#a900c0b670ad04a76b6add803ade7ae0d">nodes</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keywordflow">return</span> mNodes;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>* <a class="code" href="structchi_1_1GraphFunction.html#acb3281f6b313b7070efb0ee84b937523">nodeByID</a>(<span class="keyword">const</span> boost::uuids::uuid&amp; <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>* <a class="code" href="structchi_1_1GraphFunction.html#ae47496f51bd5ba48bc0afd52f03ef722">entryNode</a>() <span class="keyword">const</span> noexcept;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphFunction.html#ac75470b92fcf30495c7daab64d999ed8">insertNode</a>(std::unique_ptr&lt;NodeType&gt; type, <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y,</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                      boost::uuids::uuid <span class="keywordtype">id</span>     = boost::uuids::random_generator()(),</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                      <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>**     toFill = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    std::vector&lt;NodeInstance*&gt; <a class="code" href="structchi_1_1GraphFunction.html#a56ba667341ecc6fce1e290cce6aedf53">nodesWithType</a>(<span class="keyword">const</span> boost::filesystem::path&amp; <a class="code" href="structchi_1_1GraphFunction.html#a0564412e260698bdb3872d3d12dfc3bc">module</a>,</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                                             boost::string_view             name) <span class="keyword">const</span> noexcept;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphFunction.html#ac75470b92fcf30495c7daab64d999ed8">insertNode</a>(<span class="keyword">const</span> boost::filesystem::path&amp; moduleName, boost::string_view typeName,</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                      <span class="keyword">const</span> nlohmann::json&amp; typeJSON, <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y,</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                      boost::uuids::uuid <span class="keywordtype">id</span>     = boost::uuids::random_generator()(),</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                      <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>**     toFill = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphFunction.html#a2248f5089ddc01a46b9ba4129925a44c">removeNode</a>(<a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; nodeToRemove);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphFunction.html#a0e722c9bae3101c4bb54ad9baae6f841">getOrInsertEntryNode</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y,</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                                boost::uuids::uuid <span class="keywordtype">id</span>     = boost::uuids::random_generator()(),</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                                <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>**     toFill = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphFunction.html#a1d740529978bdf31284b6b815ec0426b">createEntryNodeType</a>(std::unique_ptr&lt;NodeType&gt;* toFill) <span class="keyword">const</span>;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphFunction.html#af14ad950cfff4ad3091827f9b6ad1cd2">createExitNodeType</a>(std::unique_ptr&lt;NodeType&gt;* toFill) <span class="keyword">const</span>;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    llvm::FunctionType* <a class="code" href="structchi_1_1GraphFunction.html#aa2c89c659786c9928a616a81dab267e4">functionType</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="comment">// TODO: check uses and replace to avoid errors</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#ab457f58fbb96c8089340b4ebd43cb633">  145</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;NamedDataType&gt;&amp; <a class="code" href="structchi_1_1GraphFunction.html#ab457f58fbb96c8089340b4ebd43cb633">dataInputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mDataInputs; }</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#ab2b04efa795ef12d628f13ff55e55043">addDataInput</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1DataType.html">DataType</a>&amp; type, std::string name,</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                      <span class="keywordtype">size_t</span> addBefore = (std::numeric_limits&lt;size_t&gt;::max)());</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#abac77d34a4bf04d7c409655b0b3e89d0">removeDataInput</a>(<span class="keywordtype">size_t</span> idx);</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a4bb426c921d46bbd8cbf237d716bc1c5">renameDataInput</a>(<span class="keywordtype">size_t</span> idx, std::string newName);</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#aa69ea8953b3c1b9da14a5364c747e49b">retypeDataInput</a>(<span class="keywordtype">size_t</span> idx, <a class="code" href="structchi_1_1DataType.html">DataType</a> newType);</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#ab0bf0d819ff062c01220614f617d5965">  180</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;NamedDataType&gt;&amp; <a class="code" href="structchi_1_1GraphFunction.html#ab0bf0d819ff062c01220614f617d5965">dataOutputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mDataOutputs; }</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#aef07b609586e0961cc16d0000362470d">addDataOutput</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1DataType.html">DataType</a>&amp; type, std::string name,</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                       <span class="keywordtype">size_t</span> addBefore = (std::numeric_limits&lt;size_t&gt;::max)());</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a65db0e7550128544600ebb1fff4bd69c">removeDataOutput</a>(<span class="keywordtype">size_t</span> idx);</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a8b31017553adfc52ad6140868c328fbd">renameDataOutput</a>(<span class="keywordtype">size_t</span> idx, std::string newName);</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a7772a0180716a2c29436d086d757743e">retypeDataOutput</a>(<span class="keywordtype">size_t</span> idx, <a class="code" href="structchi_1_1DataType.html">DataType</a> newType);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#a64fa4eceaf024d3ebf628fe15e7ca9be">  216</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; <a class="code" href="structchi_1_1GraphFunction.html#a64fa4eceaf024d3ebf628fe15e7ca9be">execInputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mExecInputs; }</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#aa19f446296aa429b583cad3c044d780c">addExecInput</a>(std::string name, <span class="keywordtype">size_t</span> addBefore = (std::numeric_limits&lt;size_t&gt;::max)());</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a90ff1195a338ddbf8e8654b6efc9b0b7">removeExecInput</a>(<span class="keywordtype">size_t</span> idx);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a26a88fe7adb30077c54732af11136685">renameExecInput</a>(<span class="keywordtype">size_t</span> idx, std::string name);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#ab47bbbd84f14240b824c1a780b125207">  241</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; <a class="code" href="structchi_1_1GraphFunction.html#ab47bbbd84f14240b824c1a780b125207">execOutputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mExecOutputs; }</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a0ae483cab804b1128d14ff2560818f82">addExecOutput</a>(std::string name, <span class="keywordtype">size_t</span> addBefore = (std::numeric_limits&lt;size_t&gt;::max)());</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#af452babcc5f350cf185b3b5f98151e14">removeExecOutput</a>(<span class="keywordtype">size_t</span> idx);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a3c10d56dd68371400993b4a3c120f585">renameExecOutput</a>(<span class="keywordtype">size_t</span> idx, std::string name);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#a44f8f791775e4878b6bde37140cd131d">  265</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;NamedDataType&gt;&amp; <a class="code" href="structchi_1_1GraphFunction.html#a44f8f791775e4878b6bde37140cd131d">localVariables</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mLocalVariables; }</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <a class="code" href="structchi_1_1NamedDataType.html">NamedDataType</a> <a class="code" href="structchi_1_1GraphFunction.html#a0123fb77fb0a19ea18163afb88f7687b">localVariableFromName</a>(boost::string_view name) <span class="keyword">const</span>;</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <a class="code" href="structchi_1_1NamedDataType.html">NamedDataType</a> <a class="code" href="structchi_1_1GraphFunction.html#a9a3b003e74692f5d0aa474d28c0dd23d">getOrCreateLocalVariable</a>(std::string name, <a class="code" href="structchi_1_1DataType.html">DataType</a> type,</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                                           <span class="keywordtype">bool</span>* inserted = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1GraphFunction.html#a81f2a4203abba46ff8494a6a7e192094">removeLocalVariable</a>(boost::string_view name);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a60bc423cb4fed3605a446da112949483">renameLocalVariable</a>(std::string oldName, std::string newName);</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#a4c38679ec5e727bfb71c8eaaa5a8ca1a">retypeLocalVariable</a>(boost::string_view name, <a class="code" href="structchi_1_1DataType.html">DataType</a> newType);</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#afdcae25278b1de714d77cf8051172cdf">  299</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphFunction.html#afdcae25278b1de714d77cf8051172cdf">setDescription</a>(std::string newDesc) { mDescription = std::move(newDesc); }</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#ad261ccd66a6fcbf6492cf6565e365d0e">  303</a></span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="structchi_1_1GraphFunction.html#ad261ccd66a6fcbf6492cf6565e365d0e">description</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mDescription; };</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="comment">// Various getters</span></div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#aca401237496ae311e43c7a43519e4720">  310</a></span>&#160;    <a class="code" href="structchi_1_1Context.html">Context</a>&amp; <a class="code" href="structchi_1_1GraphFunction.html#aca401237496ae311e43c7a43519e4720">context</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mContext; }</div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#a89069f6e08f71cfbafb245ea16c8d69f">  313</a></span>&#160;    std::string <a class="code" href="structchi_1_1GraphFunction.html#a89069f6e08f71cfbafb245ea16c8d69f">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mName; }</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    std::string <a class="code" href="structchi_1_1GraphFunction.html#ad739c826ed87035857193995c23cabe2">qualifiedName</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    std::vector&lt;NodeInstance*&gt; <a class="code" href="structchi_1_1GraphFunction.html#a27c87614be4357e97c1ececd2228f865">setName</a>(boost::string_view newName, <span class="keywordtype">bool</span> updateReferences = <span class="keyword">true</span>);</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div><div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="structchi_1_1GraphFunction.html#a0564412e260698bdb3872d3d12dfc3bc">  328</a></span>&#160;    <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp; <a class="code" href="structchi_1_1GraphFunction.html#a0564412e260698bdb3872d3d12dfc3bc">module</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mModule; }</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <span class="keywordtype">void</span> updateEntries();  <span class="comment">// update the entry node to work with</span></div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="keywordtype">void</span> updateExits();</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>* mModule;</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <a class="code" href="structchi_1_1Context.html">Context</a>*     mContext;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    std::string  mName;  </div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    std::string  mDescription;</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    std::vector&lt;NamedDataType&gt; mDataInputs;</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    std::vector&lt;NamedDataType&gt; mDataOutputs;</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    std::vector&lt;std::string&gt; mExecInputs;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    std::vector&lt;std::string&gt; mExecOutputs;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    std::vector&lt;NamedDataType&gt; mLocalVariables;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    std::unordered_map&lt;boost::uuids::uuid, std::unique_ptr&lt;NodeInstance&gt;&gt;</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        mNodes;  </div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;};</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;</div><div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="namespacechi.html#aa47212ba13fb1a1d26774dc208c15255">  355</a></span>&#160;<span class="keyword">inline</span> std::pair&lt;std::string, std::string&gt; <a class="code" href="namespacechi.html#aa47212ba13fb1a1d26774dc208c15255">parseColonPair</a>(<span class="keyword">const</span> std::string&amp; in) {</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordtype">size_t</span> colonID = in.find(<span class="charliteral">&#39;:&#39;</span>);</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keywordflow">if</span> (colonID == std::string::npos) { <span class="keywordflow">return</span> {}; }</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    std::string <a class="code" href="structchi_1_1GraphFunction.html#a0564412e260698bdb3872d3d12dfc3bc">module</a> = in.substr(0, in.find(<span class="charliteral">&#39;:&#39;</span>));</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    std::string <a class="code" href="structchi_1_1GraphFunction.html#a89069f6e08f71cfbafb245ea16c8d69f">name</a>   = in.substr(in.find(<span class="charliteral">&#39;:&#39;</span>) + 1);</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">return</span> {<a class="code" href="structchi_1_1GraphFunction.html#a0564412e260698bdb3872d3d12dfc3bc">module</a>, name};</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;}</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;}  <span class="comment">// namespace chi</span></div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;<span class="preprocessor">#endif  // CHI_GRAPH_FUNCTION_HPP</span></div><div class="ttc" id="structchi_1_1GraphFunction_html_aef07b609586e0961cc16d0000362470d"><div class="ttname"><a href="structchi_1_1GraphFunction.html#aef07b609586e0961cc16d0000362470d">chi::GraphFunction::addDataOutput</a></div><div class="ttdeci">void addDataOutput(const DataType &amp;type, std::string name, size_t addBefore=(std::numeric_limits&lt; size_t &gt;::max)())</div><div class="ttdoc">Add an data output to the end of the argument list. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00248">GraphFunction.cpp:248</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a44459c33f26a8f4d9529619991988100"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a44459c33f26a8f4d9529619991988100">chi::GraphFunction::GraphFunction</a></div><div class="ttdeci">GraphFunction(GraphModule &amp;mod, std::string name, std::vector&lt; NamedDataType &gt; dataIns, std::vector&lt; NamedDataType &gt; dataOuts, std::vector&lt; std::string &gt; execIns, std::vector&lt; std::string &gt; execOuts)</div><div class="ttdoc">Construct a graph–don&amp;#39;t call this directly use GraphModule::getorCreateFunction. ...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00025">GraphFunction.cpp:25</a></div></div>
<div class="ttc" id="HashUuid_8hpp_html"><div class="ttname"><a href="HashUuid_8hpp.html">HashUuid.hpp</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ab2b04efa795ef12d628f13ff55e55043"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ab2b04efa795ef12d628f13ff55e55043">chi::GraphFunction::addDataInput</a></div><div class="ttdeci">void addDataInput(const DataType &amp;type, std::string name, size_t addBefore=(std::numeric_limits&lt; size_t &gt;::max)())</div><div class="ttdoc">Add an input to the end of the argument list. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00212">GraphFunction.cpp:212</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a0e722c9bae3101c4bb54ad9baae6f841"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a0e722c9bae3101c4bb54ad9baae6f841">chi::GraphFunction::getOrInsertEntryNode</a></div><div class="ttdeci">Result getOrInsertEntryNode(float x, float y, boost::uuids::uuid id=boost::uuids::random_generator()(), NodeInstance **toFill=nullptr)</div><div class="ttdoc">Creates an entry node if it doesn&amp;#39;t already exist, else just return it. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00192">GraphFunction.cpp:192</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ab0bf0d819ff062c01220614f617d5965"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ab0bf0d819ff062c01220614f617d5965">chi::GraphFunction::dataOutputs</a></div><div class="ttdeci">const std::vector&lt; NamedDataType &gt; &amp; dataOutputs() const</div><div class="ttdoc">Get the function data outputs in the format {type, docstring}. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00180">GraphFunction.hpp:180</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html"><div class="ttname"><a href="structchi_1_1GraphFunction.html">chi::GraphFunction</a></div><div class="ttdoc">this is an AST-like representation of a function in a graph It is used for IDE-like behavior...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00023">GraphFunction.hpp:23</a></div></div>
<div class="ttc" id="core_2include_2chi_2Fwd_8hpp_html"><div class="ttname"><a href="core_2include_2chi_2Fwd_8hpp.html">Fwd.hpp</a></div><div class="ttdoc">Forward declares all the chigraph data types. </div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a2248f5089ddc01a46b9ba4129925a44c"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a2248f5089ddc01a46b9ba4129925a44c">chi::GraphFunction::removeNode</a></div><div class="ttdeci">Result removeNode(NodeInstance &amp;nodeToRemove)</div><div class="ttdoc">Remove a node from the function. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00114">GraphFunction.cpp:114</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a1d740529978bdf31284b6b815ec0426b"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a1d740529978bdf31284b6b815ec0426b">chi::GraphFunction::createEntryNodeType</a></div><div class="ttdeci">Result createEntryNodeType(std::unique_ptr&lt; NodeType &gt; *toFill) const</div><div class="ttdoc">Create a fresh NodeType for an entry. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00156">GraphFunction.cpp:156</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_aa69ea8953b3c1b9da14a5364c747e49b"><div class="ttname"><a href="structchi_1_1GraphFunction.html#aa69ea8953b3c1b9da14a5364c747e49b">chi::GraphFunction::retypeDataInput</a></div><div class="ttdeci">void retypeDataInput(size_t idx, DataType newType)</div><div class="ttdoc">Change the type of a data input This also updates the entry node and disconnects invalid connections...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00240">GraphFunction.cpp:240</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a64fa4eceaf024d3ebf628fe15e7ca9be"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a64fa4eceaf024d3ebf628fe15e7ca9be">chi::GraphFunction::execInputs</a></div><div class="ttdeci">const std::vector&lt; std::string &gt; &amp; execInputs() const</div><div class="ttdoc">Get the function exec inputs. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00216">GraphFunction.hpp:216</a></div></div>
<div class="ttc" id="namespacechi_html_aa47212ba13fb1a1d26774dc208c15255"><div class="ttname"><a href="namespacechi.html#aa47212ba13fb1a1d26774dc208c15255">chi::parseColonPair</a></div><div class="ttdeci">std::pair&lt; std::string, std::string &gt; parseColonPair(const std::string &amp;in)</div><div class="ttdoc">Parse a colonated pair Example: lang:i32 would turn into {lang, i32}. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00355">GraphFunction.hpp:355</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ac75470b92fcf30495c7daab64d999ed8"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ac75470b92fcf30495c7daab64d999ed8">chi::GraphFunction::insertNode</a></div><div class="ttdeci">Result insertNode(std::unique_ptr&lt; NodeType &gt; type, float x, float y, boost::uuids::uuid id=boost::uuids::random_generator()(), NodeInstance **toFill=nullptr)</div><div class="ttdoc">Add a node to the graph. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00064">GraphFunction.cpp:64</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a0123fb77fb0a19ea18163afb88f7687b"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a0123fb77fb0a19ea18163afb88f7687b">chi::GraphFunction::localVariableFromName</a></div><div class="ttdeci">NamedDataType localVariableFromName(boost::string_view name) const</div><div class="ttdoc">Get a local varaible by name. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00379">GraphFunction.cpp:379</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ab47bbbd84f14240b824c1a780b125207"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ab47bbbd84f14240b824c1a780b125207">chi::GraphFunction::execOutputs</a></div><div class="ttdeci">const std::vector&lt; std::string &gt; &amp; execOutputs() const</div><div class="ttdoc">Get the function exec outputs. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00241">GraphFunction.hpp:241</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a89c896ae804c853b4c291897f5f8634c"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a89c896ae804c853b4c291897f5f8634c">chi::GraphFunction::~GraphFunction</a></div><div class="ttdeci">~GraphFunction()=default</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_abac77d34a4bf04d7c409655b0b3e89d0"><div class="ttname"><a href="structchi_1_1GraphFunction.html#abac77d34a4bf04d7c409655b0b3e89d0">chi::GraphFunction::removeDataInput</a></div><div class="ttdeci">void removeDataInput(size_t idx)</div><div class="ttdoc">Remove an input from the argument list Also removes invalid connections If idx is out of range...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00224">GraphFunction.cpp:224</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_aca401237496ae311e43c7a43519e4720"><div class="ttname"><a href="structchi_1_1GraphFunction.html#aca401237496ae311e43c7a43519e4720">chi::GraphFunction::context</a></div><div class="ttdeci">Context &amp; context() const</div><div class="ttdoc">Get the context. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00310">GraphFunction.hpp:310</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a4c38679ec5e727bfb71c8eaaa5a8ca1a"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a4c38679ec5e727bfb71c8eaaa5a8ca1a">chi::GraphFunction::retypeLocalVariable</a></div><div class="ttdeci">void retypeLocalVariable(boost::string_view name, DataType newType)</div><div class="ttdoc">Set a new type to a local variable. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00469">GraphFunction.cpp:469</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ad739c826ed87035857193995c23cabe2"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ad739c826ed87035857193995c23cabe2">chi::GraphFunction::qualifiedName</a></div><div class="ttdeci">std::string qualifiedName() const</div><div class="ttdoc">Get the qualified name of the function Same as module().fullName() + &quot;:&quot; + name();. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00530">GraphFunction.cpp:530</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html"><div class="ttname"><a href="structchi_1_1NodeInstance.html">chi::NodeInstance</a></div><div class="ttdoc">An instance of a node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00019">NodeInstance.hpp:19</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_af452babcc5f350cf185b3b5f98151e14"><div class="ttname"><a href="structchi_1_1GraphFunction.html#af452babcc5f350cf185b3b5f98151e14">chi::GraphFunction::removeExecOutput</a></div><div class="ttdeci">void removeExecOutput(size_t idx)</div><div class="ttdoc">Remove an exec output from the argument list If idx is out of range, this function does nothing...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00341">GraphFunction.cpp:341</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_afdcae25278b1de714d77cf8051172cdf"><div class="ttname"><a href="structchi_1_1GraphFunction.html#afdcae25278b1de714d77cf8051172cdf">chi::GraphFunction::setDescription</a></div><div class="ttdeci">void setDescription(std::string newDesc)</div><div class="ttdoc">Set the description of the function. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00299">GraphFunction.hpp:299</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a0564412e260698bdb3872d3d12dfc3bc"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a0564412e260698bdb3872d3d12dfc3bc">chi::GraphFunction::module</a></div><div class="ttdeci">GraphModule &amp; module() const</div><div class="ttdoc">Get the GraphModule that contains this GraphFunction. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00328">GraphFunction.hpp:328</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a65db0e7550128544600ebb1fff4bd69c"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a65db0e7550128544600ebb1fff4bd69c">chi::GraphFunction::removeDataOutput</a></div><div class="ttdeci">void removeDataOutput(size_t idx)</div><div class="ttdoc">Remove an data output from the argument list Also removes invalid connections If idx is out of range...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00260">GraphFunction.cpp:260</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_af14ad950cfff4ad3091827f9b6ad1cd2"><div class="ttname"><a href="structchi_1_1GraphFunction.html#af14ad950cfff4ad3091827f9b6ad1cd2">chi::GraphFunction::createExitNodeType</a></div><div class="ttdeci">Result createExitNodeType(std::unique_ptr&lt; NodeType &gt; *toFill) const</div><div class="ttdoc">Create a fresh NodeType for an exit. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00174">GraphFunction.cpp:174</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a89069f6e08f71cfbafb245ea16c8d69f"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a89069f6e08f71cfbafb245ea16c8d69f">chi::GraphFunction::name</a></div><div class="ttdeci">std::string name() const</div><div class="ttdoc">Get the name of the function. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00313">GraphFunction.hpp:313</a></div></div>
<div class="ttc" id="structchi_1_1NamedDataType_html"><div class="ttname"><a href="structchi_1_1NamedDataType.html">chi::NamedDataType</a></div><div class="ttdoc">Basicaly a std::pair&lt;std::string, DataType&gt;, except it has nicer names. </div><div class="ttdef"><b>Definition:</b> <a href="DataType_8hpp_source.html#l00072">DataType.hpp:72</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a900c0b670ad04a76b6add803ade7ae0d"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a900c0b670ad04a76b6add803ade7ae0d">chi::GraphFunction::nodes</a></div><div class="ttdeci">const std::unordered_map&lt; boost::uuids::uuid, std::unique_ptr&lt; NodeInstance &gt; &gt; &amp; nodes() const</div><div class="ttdoc">Get the nodes in the function Usually called by connectData or connectExec or GraphFunction. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00055">GraphFunction.hpp:55</a></div></div>
<div class="ttc" id="structchi_1_1Context_html"><div class="ttname"><a href="structchi_1_1Context.html">chi::Context</a></div><div class="ttdoc">The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...</div><div class="ttdef"><b>Definition:</b> <a href="Context_8hpp_source.html#l00055">Context.hpp:55</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a90ff1195a338ddbf8e8654b6efc9b0b7"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a90ff1195a338ddbf8e8654b6efc9b0b7">chi::GraphFunction::removeExecInput</a></div><div class="ttdeci">void removeExecInput(size_t idx)</div><div class="ttdoc">Remove an exec input from the argument list If idx is out of range, this function does nothing...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00312">GraphFunction.cpp:312</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a26a88fe7adb30077c54732af11136685"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a26a88fe7adb30077c54732af11136685">chi::GraphFunction::renameExecInput</a></div><div class="ttdeci">void renameExecInput(size_t idx, std::string name)</div><div class="ttdoc">Change the name for an exec input If idx is out of range, this function does nothing. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00320">GraphFunction.cpp:320</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_acb3281f6b313b7070efb0ee84b937523"><div class="ttname"><a href="structchi_1_1GraphFunction.html#acb3281f6b313b7070efb0ee84b937523">chi::GraphFunction::nodeByID</a></div><div class="ttdeci">NodeInstance * nodeByID(const boost::uuids::uuid &amp;id) const</div><div class="ttdoc">Get a node with a given ID. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00038">GraphFunction.cpp:38</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a27c87614be4357e97c1ececd2228f865"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a27c87614be4357e97c1ececd2228f865">chi::GraphFunction::setName</a></div><div class="ttdeci">std::vector&lt; NodeInstance * &gt; setName(boost::string_view newName, bool updateReferences=true)</div><div class="ttdoc">Set the name of the function. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00506">GraphFunction.cpp:506</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ae47496f51bd5ba48bc0afd52f03ef722"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ae47496f51bd5ba48bc0afd52f03ef722">chi::GraphFunction::entryNode</a></div><div class="ttdeci">NodeInstance * entryNode() const noexcept</div><div class="ttdoc">Gets the node with type lang:entry returns nullptr on failure Also returns nullptr if there are two e...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00044">GraphFunction.cpp:44</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a3c10d56dd68371400993b4a3c120f585"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a3c10d56dd68371400993b4a3c120f585">chi::GraphFunction::renameExecOutput</a></div><div class="ttdeci">void renameExecOutput(size_t idx, std::string name)</div><div class="ttdoc">Rename an exec output If idx is out of range, this function does nothing. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00349">GraphFunction.cpp:349</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_aa5985d96d7564d7ee7f240fdb02b41a6"><div class="ttname"><a href="structchi_1_1GraphFunction.html#aa5985d96d7564d7ee7f240fdb02b41a6">chi::GraphFunction::nodes</a></div><div class="ttdeci">std::unordered_map&lt; boost::uuids::uuid, std::unique_ptr&lt; NodeInstance &gt; &gt; &amp; nodes()</div><div class="ttdoc">Get the nodes in the function Usually called by connectData or connectExec or GraphFunction. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00051">GraphFunction.hpp:51</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a7772a0180716a2c29436d086d757743e"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a7772a0180716a2c29436d086d757743e">chi::GraphFunction::retypeDataOutput</a></div><div class="ttdeci">void retypeDataOutput(size_t idx, DataType newType)</div><div class="ttdoc">Change the type of a data output This also updates all exit nodes and disconnects invalid connections...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00276">GraphFunction.cpp:276</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a60bc423cb4fed3605a446da112949483"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a60bc423cb4fed3605a446da112949483">chi::GraphFunction::renameLocalVariable</a></div><div class="ttdeci">void renameLocalVariable(std::string oldName, std::string newName)</div><div class="ttdoc">Rename a local variable. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00428">GraphFunction.cpp:428</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a81f2a4203abba46ff8494a6a7e192094"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a81f2a4203abba46ff8494a6a7e192094">chi::GraphFunction::removeLocalVariable</a></div><div class="ttdeci">bool removeLocalVariable(boost::string_view name)</div><div class="ttdoc">Remove a local variable from the function by name. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00405">GraphFunction.cpp:405</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a56ba667341ecc6fce1e290cce6aedf53"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a56ba667341ecc6fce1e290cce6aedf53">chi::GraphFunction::nodesWithType</a></div><div class="ttdeci">std::vector&lt; NodeInstance * &gt; nodesWithType(const boost::filesystem::path &amp;module, boost::string_view name) const noexcept</div><div class="ttdoc">Gets the nodes with a given type. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00087">GraphFunction.cpp:87</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a44f8f791775e4878b6bde37140cd131d"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a44f8f791775e4878b6bde37140cd131d">chi::GraphFunction::localVariables</a></div><div class="ttdeci">const std::vector&lt; NamedDataType &gt; &amp; localVariables() const</div><div class="ttdoc">Get the local variables. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00265">GraphFunction.hpp:265</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html"><div class="ttname"><a href="structchi_1_1GraphModule.html">chi::GraphModule</a></div><div class="ttdoc">Module that holds graph functions. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8hpp_source.html#l00016">GraphModule.hpp:16</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a8b31017553adfc52ad6140868c328fbd"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a8b31017553adfc52ad6140868c328fbd">chi::GraphFunction::renameDataOutput</a></div><div class="ttdeci">void renameDataOutput(size_t idx, std::string newName)</div><div class="ttdoc">Modify an data output (change it&amp;#39;s type and docstring) </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00268">GraphFunction.cpp:268</a></div></div>
<div class="ttc" id="namespacechi_html"><div class="ttname"><a href="namespacechi.html">chi</a></div><div class="ttdoc">The namespace where chigraph lives. </div><div class="ttdef"><b>Definition:</b> <a href="BitcodeParser_8hpp_source.html#l00012">BitcodeParser.hpp:12</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a0ae483cab804b1128d14ff2560818f82"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a0ae483cab804b1128d14ff2560818f82">chi::GraphFunction::addExecOutput</a></div><div class="ttdeci">void addExecOutput(std::string name, size_t addBefore=(std::numeric_limits&lt; size_t &gt;::max)())</div><div class="ttdoc">Add an exec output to the end of the argument list. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00328">GraphFunction.cpp:328</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_aa19f446296aa429b583cad3c044d780c"><div class="ttname"><a href="structchi_1_1GraphFunction.html#aa19f446296aa429b583cad3c044d780c">chi::GraphFunction::addExecInput</a></div><div class="ttdeci">void addExecInput(std::string name, size_t addBefore=(std::numeric_limits&lt; size_t &gt;::max)())</div><div class="ttdoc">Add an exec input to the end of the argument list. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00299">GraphFunction.cpp:299</a></div></div>
<div class="ttc" id="structchi_1_1DataType_html"><div class="ttname"><a href="structchi_1_1DataType.html">chi::DataType</a></div><div class="ttdoc">A type of data Loose wrapper around llvm::Type*, except it knows which ChiModule it&amp;#39;s in and it embed...</div><div class="ttdef"><b>Definition:</b> <a href="DataType_8hpp_source.html#l00017">DataType.hpp:17</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ab457f58fbb96c8089340b4ebd43cb633"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ab457f58fbb96c8089340b4ebd43cb633">chi::GraphFunction::dataInputs</a></div><div class="ttdeci">const std::vector&lt; NamedDataType &gt; &amp; dataInputs() const</div><div class="ttdoc">Get the function data inputs in the format {type, docstring}. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00145">GraphFunction.hpp:145</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_aa2c89c659786c9928a616a81dab267e4"><div class="ttname"><a href="structchi_1_1GraphFunction.html#aa2c89c659786c9928a616a81dab267e4">chi::GraphFunction::functionType</a></div><div class="ttdeci">llvm::FunctionType * functionType() const</div><div class="ttdoc">Get the LLVM function type for the function. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00281">GraphFunction.cpp:281</a></div></div>
<div class="ttc" id="structchi_1_1Result_html"><div class="ttname"><a href="structchi_1_1Result.html">chi::Result</a></div><div class="ttdoc">The result object, used for identifiying errors with good diagnostics. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00072">Result.hpp:72</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a9a3b003e74692f5d0aa474d28c0dd23d"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a9a3b003e74692f5d0aa474d28c0dd23d">chi::GraphFunction::getOrCreateLocalVariable</a></div><div class="ttdeci">NamedDataType getOrCreateLocalVariable(std::string name, DataType type, bool *inserted=nullptr)</div><div class="ttdoc">Create a new local varaible in the module. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00387">GraphFunction.cpp:387</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_a4bb426c921d46bbd8cbf237d716bc1c5"><div class="ttname"><a href="structchi_1_1GraphFunction.html#a4bb426c921d46bbd8cbf237d716bc1c5">chi::GraphFunction::renameDataInput</a></div><div class="ttdeci">void renameDataInput(size_t idx, std::string newName)</div><div class="ttdoc">Rename a data input This also updates the entry node If idx is out of range, this function does nothi...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8cpp_source.html#l00232">GraphFunction.cpp:232</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html_ad261ccd66a6fcbf6492cf6565e365d0e"><div class="ttname"><a href="structchi_1_1GraphFunction.html#ad261ccd66a6fcbf6492cf6565e365d0e">chi::GraphFunction::description</a></div><div class="ttdeci">const std::string &amp; description() const</div><div class="ttdoc">Get the description of the function. </div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00303">GraphFunction.hpp:303</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_a2d5e495f4b604d04f57d90095a59dd6.html">core</a></li><li class="navelem"><a class="el" href="dir_a979adfa99d5a8626731f83d5067598b.html">include</a></li><li class="navelem"><a class="el" href="dir_afbc2aa4d9616322ddf4041ba4f8ade6.html">chi</a></li><li class="navelem"><a class="el" href="GraphFunction_8hpp.html">GraphFunction.hpp</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
